package org.xdq.demo.model;

import java.util.Date;

import com.alibaba.fastjson.annotation.JSONField;

public class Employee {
	
	private String e_id;
	private String e_name;
	private String e_sex;
	
	@JSONField(format = "yyyy-MM-dd")
	private Date e_birth;
	
	private String e_remark;
	private Integer e_status;
	private Double e_sal;
	
	private Integer d_id;
	private String d_name;
	
	
	public String getE_id() {
		return e_id;
	}
	public void setE_id(String e_id) {
		this.e_id = e_id;
	}
	public String getE_name() {
		return e_name;
	}
	public void setE_name(String e_name) {
		this.e_name = e_name;
	}
	public String getE_sex() {
		return e_sex;
	}
	public void setE_sex(String e_sex) {
		this.e_sex = e_sex;
	}
	public Date getE_birth() {
		return e_birth;
	}
	public void setE_birth(Date e_birth) {
		this.e_birth = e_birth;
	}
	public String getE_remark() {
		return e_remark;
	}
	public void setE_remark(String e_remark) {
		this.e_remark = e_remark;
	}
	public Integer getE_status() {
		return e_status;
	}
	public void setE_status(Integer e_status) {
		this.e_status = e_status;
	}
	public Double getE_sal() {
		return e_sal;
	}
	public void setE_sal(Double e_sal) {
		this.e_sal = e_sal;
	}
	public Integer getD_id() {
		return d_id;
	}
	public void setD_id(Integer d_id) {
		this.d_id = d_id;
	}
	public String getD_name() {
		return d_name;
	}
	public void setD_name(String d_name) {
		this.d_name = d_name;
	}
	
	
	public String getStatusName() {
		if(this.e_status==null)return null;
		switch(this.e_status) {
		case 0 : return "未确定";
		case 1 : return "在职";
		case 2 : return "离职";
		default:return null;
		
		}
	}

}
